﻿<Window x:Class="CECB.ActivationCodeEmail_Window"
     
 xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
 xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
  

Title="MainWindow"    xmlns:toolkit="clr-namespace:System.Windows.Controls;assembly=System.Windows.Controls.Input.Toolkit"
       
          WindowStartupLocation="CenterScreen"   Background="#AA000000" 
        AllowsTransparency="True" WindowStyle="None" WindowState="Maximized"
        mc:Ignorable="d" xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
        xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006">
    <Grid VerticalAlignment="Center" HorizontalAlignment="Center" Width="800" Height="650">
        <Rectangle VerticalAlignment="Center" HorizontalAlignment="Center" Width="671" Height="638" Stroke="White" RadiusY="19.5" RadiusX="19.5" StrokeThickness="4" Margin="74,12,55,0">
            <Rectangle.Effect>
                <DropShadowEffect Direction="330" BlurRadius="24" ShadowDepth="13" />
            </Rectangle.Effect>
            <Rectangle.Fill>
                <LinearGradientBrush EndPoint="0.5,1" StartPoint="0.5,0">
                    <GradientStop Color="Black" Offset="0" />
                    <GradientStop Color="#FFA3A1A1" Offset="0.494" />
                    <GradientStop Color="#FF272121" Offset="0" />
                    <GradientStop Color="#FF272121" Offset="1" />
                </LinearGradientBrush>
            </Rectangle.Fill>
        </Rectangle>
        <StackPanel VerticalAlignment="Top" HorizontalAlignment="Center" Margin="150,0,116,0" Width="534" Height="638">
            <WrapPanel>
                <Label Content="Send Emails" Foreground="White" Height="auto" HorizontalAlignment="Left" Margin="0,30,0,0" VerticalAlignment="Center" Width="146" FontSize="20" FontStretch="Normal" FontStyle="Normal" FontWeight="Black"/>
            </WrapPanel>
            <WrapPanel Orientation="Horizontal">
                <Label Content="Select Project" Height="28"  Margin="25,6,0,6" Foreground="White" />
                <toolkit:AutoCompleteBox Name="TeamAutocompleteTextBox" Width="271.553" Margin="150,0,0,0" Height="30"  ValueMemberPath="proj_name"  FilterMode="Contains"  ItemsSource="{Binding}"  TabIndex="1" IsTabStop="True"  SelectionChanged="TeamReferenceTextBox_SelectionChanged" FontSize="18" Background="White" Opacity="1" HorizontalAlignment="Center" UseLayoutRounding="False" BorderBrush="#FFF8F8F8" BorderThickness="2">
                    <toolkit:AutoCompleteBox.ItemTemplate>
                        <DataTemplate>
                            <StackPanel Orientation="Horizontal">
                                <TextBlock Text="{Binding Path=proj_name}"/>
                                <TextBlock Text=" - "/>
                                <TextBlock Text="{Binding Path=proj_reference}"/>

                            </StackPanel>
                        </DataTemplate>
                    </toolkit:AutoCompleteBox.ItemTemplate>
                </toolkit:AutoCompleteBox>
            </WrapPanel>
            <WrapPanel Orientation="Horizontal">
                <Label Content="Project Team" Height="28" Margin="25,6,0,6" Foreground="White" />
                <Label Name="Label_projectTeam" Height="23" Foreground="White" Width="274" Margin="150,6,0,6" />
            </WrapPanel>
            <Grid>
                <Grid.ColumnDefinitions>
                    <ColumnDefinition Width="250" />
                    <ColumnDefinition Width="*" />
                </Grid.ColumnDefinitions>
                <Expander Header="Advanced" Name="expander_advanced" HorizontalAlignment="Right" Width="229" Foreground="White" Margin="0,0,15,0">
                    <StackPanel Orientation="Vertical" Height="200">
                        <WrapPanel Orientation="Horizontal">
                            <Label Content="Select Member" Width="120" Margin="10,0,0,0" />
                        </WrapPanel>
                        <WrapPanel Orientation="Horizontal">
                            <TextBox Height="23" Name="textBox1" Width="215" />
                        </WrapPanel>
                        <WrapPanel Orientation="Horizontal">
                            <Label Content="Time Duration" Width="120" Margin="10,0,0,0" />
                          
                        </WrapPanel>
                        <WrapPanel Orientation="Horizontal">
                            <Label Content="From" Margin="30,6,0,6" />
                            <DatePicker Height="26" Name="datePicker_fromDate" Width="115" Margin="10,6,0,6" />
                        </WrapPanel>
                        <WrapPanel Orientation="Horizontal">
                            <Label Content="To" Margin="30,6,0,6" />
                            <DatePicker Height="25" Name="datePicker_toDate" Width="115" Margin="25,6,0,6" />
                        </WrapPanel>
                        <WrapPanel Orientation="Horizontal">
                            <Button Content="Send Email" Height="33" Name="button1" Width="220" Margin="0,10,0,0"/>
                        </WrapPanel>
                    </StackPanel>
                </Expander>
                
                <StackPanel Grid.Column="1">
                    <ListBox x:Name="listBoxMembers" ScrollViewer.CanContentScroll="False" ScrollViewer.VerticalScrollBarVisibility="Hidden" ScrollViewer.HorizontalScrollBarVisibility="Hidden" Margin="0,0,0,0" Height="250" Background="#FFF0F0F0" Width="276" SelectionChanged="listBoxMembers_SelectionChanged">
                        <ListBox.ItemTemplate>
                            <DataTemplate>
                                <WrapPanel Background="#FF3E3832" MaxWidth="300" Width="300">
                                    <StackPanel Orientation="Horizontal" MaxWidth="300" MinHeight="40">
                                        <WrapPanel Orientation="Horizontal" MaxWidth="300">
                                            <Label Content="{Binding mem_name}" Height="auto" Width="auto" Foreground="White" HorizontalAlignment="Left" FontSize="15" />
                                              </WrapPanel>
                                    </StackPanel>
                                </WrapPanel>
                            </DataTemplate>
                        </ListBox.ItemTemplate>
                    </ListBox>
                </StackPanel>
                
            </Grid>
            <StackPanel Height="234" Name="stackPanel1" Orientation="Vertical" Width="527">
                <WrapPanel Orientation="Horizontal" Background="DimGray">
                    <Label Content="Team Member :" Height="27" Foreground="White" Width="100"   HorizontalAlignment="Left" />
                    <Label Content="Team Member" Height="27" Foreground="White" Width="347" Name="teamMember" HorizontalAlignment="Center" Margin="50,0,0,0" />
                </WrapPanel>
                <WrapPanel Orientation="Vertical" Height="167">
                    <StackPanel Width="524">
                        <Label Content="Select Components :" Height="27"  Foreground="White" Width="140"  HorizontalAlignment="Left" />
                        <ListBox Name="listBoxComponents" Height="130" Width="517" Margin="0,5,0,0" SelectionMode="Single" Background="#FFF0F0F0">
                            <ListBox.ItemTemplate>
                                <DataTemplate>
                                    <StackPanel Background="#FFDBD3CA" Orientation="Horizontal" Width="517">
                                        <Label Content="{Binding cmpt_name}" FontSize="14" Height="30"  />
                                        <Label  Content=" => " FontSize="14" Height="30"  Margin="0,0,0,0" />
                                        <Label Content="{Binding cmpt_mainCat}" Height="30" Width="auto" Margin="0,0,0,0" Foreground="Black"    FontSize="14" />
                                        <Button Content="Genarate Excel"  Height="32" Name="buttonExcelGenarate" HorizontalAlignment="Right" Width="100"    Click="buttonExcelGenarate_Click" Background="White" />
                                    </StackPanel>
                                </DataTemplate>
                            </ListBox.ItemTemplate>
                        </ListBox>
                    </StackPanel>
                </WrapPanel>
                <WrapPanel Orientation="Horizontal">
                    <Button Content="View Excels" Height="32" Name="button3" Width="127" Margin="265,0,0,0"  Click="button3_Click" Background="#FF393434" Foreground="White" BorderBrush="White" BorderThickness="2" />
                    <Button Content="Send Emails" Height="32" Name="buttonSendAllEmail" Width="120" Margin="10,0,0,0"  Click="buttonSendAllEmail_Click" Background="#FF393434" Foreground="White" BorderBrush="White" BorderThickness="2" />
                </WrapPanel>
            </StackPanel>
            
           
        </StackPanel>

        <Grid HorizontalAlignment="Right" VerticalAlignment="Top" Margin="0,33,74,0" Canvas.Left="603" Canvas.Top="-61">
            <Image Height="32" Margin="2" Source="/CECB;component/images/closeblack.png"  Width="32" MouseLeftButtonDown="Image_MouseLeftButtonDown" />
        </Grid>

    </Grid>
</Window>
